<?php
/**
 * Created by PhpStorm.
 * User: 勇林
 * Date: 2015/12/11
 * Time: 15:41
 */

namespace app\api\controllers;


use yii\helpers\ArrayHelper;
use yii\web\Controller;
use app\api\Response;
use app\models\GkyWeArticleType;


class ArticletypeController extends Controller{
    /**
     * 获取新添加的栏目
     */
    public function  actionGetList(){
        $list=  GkyWeArticleType::find()
                ->where(['isnew'=>1])
                ->all();
        Response::setHeader();
        return json_encode(ArrayHelper::toArray($list));
    }
   
}
